#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_exam1.py
# author:王雯雯
# datetime:2024-11-12 
# software: PyCharm

class Student:
    def __init__(self, sno, sname, ssex, sage, dno, sclass, address):
        self.sno = sno
        self.sname = sname
        self.ssex = ssex
        self.sage = sage
        self.dno = dno
        self.sclass = sclass
        self.address = address

    def __str__(self):
        return f"学号: {self.sno}, 姓名: {self.sname}, 性别: {self.ssex}, 年龄: {self.sage}, 所属院系: {self.dno}, 班级: {self.sclass}, 家庭住址: {self.address}"